package com.tn.controller.alarm.common.enums;

/**
 * @ClassName RpmEventTypeEnum
 * @Description TODO
 * @Author Yezhongzhu
 * @Date 2021/12/29 14:52
 * @Version v1.0
 **/
public enum RpmEventTypeEnum {
    STATICFENCE(1),
    RADIUS(2),
    FRONTENDDISPLAY(3),
    AREALIST(4);
    private int code;

    RpmEventTypeEnum(int code) {
        this.code = code;
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public static RpmEventTypeEnum getByCode(int code){
        for (RpmEventTypeEnum rmpeventtype:RpmEventTypeEnum.values()){
            if(rmpeventtype.code==code){
                return rmpeventtype;
            }
        }
        return null;
    }
}
